From: Zygmunt Krynicki Date: Fri, 13 Feb 2026 14:38:01 +0000 (+0100) Subject: [PATCH] data: more precise prune pattern for tmpfiles X-Git-Tag: archive/raspbian/2.68.3-3+rpi1+deb13u1^2~1 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/%22stanciumarius94%40gmail.com//%22mailto:i18n-csb%40linuxcsb.org/%22/%22http:/www.example.com/%22stanciumarius94%40gmail.com/%22mailto:i18n-csb%40linuxcsb.org/%22?a=commitdiff_plain;h=0d30ac56a544ccd71ef52ca8246e142c3e755d7c;p=snapd.git [PATCH] data: more precise prune pattern for tmpfiles This way the structure of private tmp directories is left intact, while the (aging) content of such directories is allowed to be removed. Signed-off-by: Zygmunt Krynicki Gbp-Pq: Name data-more-precise-prune-pattern-for-tmpfiles.patch --- diff --git a/data/systemd-tmpfiles/snapd.conf b/data/systemd-tmpfiles/snapd.conf index da8f1c38..98329e3d 100644 --- a/data/systemd-tmpfiles/snapd.conf +++ b/data/systemd-tmpfiles/snapd.conf @@ -1,7 +1,7 @@ D! /tmp/snap-private-tmp 0700 root root - -# make sure the snap's private tmp folders are -# not reaped by age if configured by the system (noble+) -# this will still let the contents be reaped, just not the -# folder itself +# Allow removing content in the private tmp folders without affecting the +# architectural structure of the folders themselves. +X /tmp/snap-private-tmp X /tmp/snap-private-tmp/*/tmp +x /tmp/snap-private-tmp/*/tmp/.snap